</body>
	<script type="text/javascript">
		function testGet1(){
			var ajax =new XMLHttpRequest();
			ajax.open('GET','http://poetry.apiopen.top/poetryFull?count=2&page=1');
			ajax.send();
			ajax.onreadystatechange =function(){
				if(ajax.status==200&&ajax.readyState==4){
					var obj =JSON.parse(ajax.responseText).result;
					console.log(obj);
					console.log(obj[0]);
					console.log(obj[1]);
					 var labeltext1=document.getElementById('label1');
					var labeltext2=document.getElementById('label2');
					labeltext1.innerHTML=obj[0].title+`<br />`+obj[0].dynasty+`<br />`
					+obj[0].writer+obj[0].content;
					labeltext2.innerHTML=obj[1].title+`<br />`+obj[1].dynasty+`<br />`+obj[1].writer+obj[1].content;
				}
			}
		}
		function testGet2(){
			var ajax =new XMLHttpRequest();
			ajax.open('GET','http://poetry.apiopen.top/poetryAuthor?count=2&page=1&name=李白');
			ajax.send();
			ajax.onreadystatechange =function(){
				if(ajax.status==200&&ajax.readyState==4){
					var obj =JSON.parse(ajax.responseText).result;
					console.log(obj);
					var labeltext1=document.getElementById('label1');
					labeltext1.innerHTML=obj.name+`<br />`+obj.simpleIntro;
				}
			}
		}
		function testGet3(){
			var ajax =new XMLHttpRequest();
			ajax.open('GET','http://poetry.apiopen.top/getTime');
			ajax.send();
			ajax.onreadystatechange =function(){
				if(ajax.status==200&&ajax.readyState==4){
					var obj =JSON.parse(ajax.responseText).result;
					console.log(obj);
					var labeltext1=document.getElementById('label1');
					labeltext1.innerHTML=obj.date+`<br />`+obj.dateTime+`<br />`+obj.time+`<br />`+obj.weekday;
				}
			}
		}
		function testGet4(){
			var ajax =new XMLHttpRequest();
			ajax.open('GET','https://api.apiopen.top/getAllUrl');
			ajax.send();
			ajax.onreadystatechange =function(){
				if(ajax.status==200&&ajax.readyState==4){
					var obj =JSON.parse(ajax.responseText);
					console.log(obj);
					var labeltext1=document.getElementById('label1');
					for(var i =0;i<50;i++){
					labeltext1.innerHTML+=obj[i]+`<br />`;
					}
					
				}
			}
		}
		function testGet5(){
			var ajax =new XMLHttpRequest();
			ajax.open('GET','http://poetry.apiopen.top/sentences');
			ajax.send();
			ajax.onreadystatechange =function(){
				if(ajax.status==200&&ajax.readyState==4){
					var obj =JSON.parse(ajax.responseText).result;
					console.log(obj);
					var labeltext1=document.getElementById('label1');
					labeltext1.innerHTML=obj.name+`<br />`+obj.from;
				}
			}
		}
	onload=function(){
		testGet1();
		testGet2();
		testGet3();
		testGet4();
		testGet5();
	}
	</script>
</html>